import Vue from 'vue'
import VueI18n from 'vue-i18n'
import enLocale from 'zcsd-core/lib/locale/lang/en'
import zhCNLocale from 'zcsd-core/lib/locale/lang/zh-CN'
import zhTwLocale from 'zcsd-core/lib/locale/lang/zh-TW'
// import locale from 'element-ui/lib/locale'
Vue.use(VueI18n)
const messages = {
  en: {
    name: 'zcsd',
    ...enLocale
    // ...elementEnLocale
  },
  zhCN: {
    name: '智城时代',
    ...zhCNLocale
    // ...elementZhLocale
  },
  zhTw: {
    ...zhTwLocale
  }
}
const i18n = new VueI18n({
  locale: 'zhCN',
  messages
})
export default i18n
